package com.pfsoft.codehelper.service;

import com.pfsoft.codehelper.domain.StudentInfo;
import com.pfsoft.codehelper.common.query.StudentInfoQuery;
import org.springframework.data.domain.*;

/**
* @author pf
* @date 2020-06-11
*/
public interface IStudentInfoService {

    /**
     * findById
     * @param id
     * @return
     */
    StudentInfo findById(Long id);

    /**
     * create
     * @param resources
     * @return
     */
    StudentInfo create(StudentInfo resources);

    /**
     * update
     * @param resources
     */
    void update(StudentInfo resources);

    /**
     * delete
     * @param id
     */
    void delete(Long id);


    /**
     * 查所有
     * @return
     */
    Page<StudentInfo> getAll(StudentInfoQuery query, Pageable pageable);
}